
import 'dart:convert';
import 'package:ichinesereader/models/evaluation/randomBookResult.dart';

EvaluationBooksResult evaluationBooksResultFromJson(String str) => EvaluationBooksResult.fromJson(json.decode(str));
String evaluationBooksResultToJson(EvaluationBooksResult data) => json.encode(data.toJson());

class EvaluationBooksResult {
    EvaluationBooksResult({
        this.limit,
        this.page,
        this.count,
        this.list,
    });

    int? limit;
    int? page;
    int? count;
    List<EvaluationBook>? list;

    factory EvaluationBooksResult.fromJson(Map<String, dynamic> json) => EvaluationBooksResult(
        limit: json["limit"],
        page: json["page"],
        count: json["count"],
        list:json["list"]!=null ? List<EvaluationBook>.from(json["list"].map((x) => EvaluationBook.fromJson(x))): null,
    );

    Map<String, dynamic> toJson() => {
        "limit": limit,
        "page": page,
        "count": count,
        "list": list!=null ? List<dynamic>.from(list!.map((x) => x.toJson())): null,
    };
}

